#!/bin/sh

if [ ! -d ".venv" ]; then
    echo "请先建立 .venv 并pip安装"
    exit
fi

if [ "$1" = "production" ]; then
   ENV=production .venv/bin/python app/main.py
else
   .venv/bin/python app/main.py
fi